﻿using Eoffice.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;



namespace Eoffice.Controllers
{
    public class ReportController : Controller
    {
        private EofficeDb db = new EofficeDb();
        //
        // GET: /Report/

        public ActionResult Index()
        {
            List<SelectListItem> items = new List<SelectListItem>();
            items.Add(new SelectListItem { Text = "", Value = "0", Selected = true });
            items.Add(new SelectListItem { Text = "Công văn đến", Value = "1" });
            items.Add(new SelectListItem { Text = "Công văn đi", Value = "2"});
            
            ViewBag.congvan = items;
            return View();
        }
        public ActionResult Report1()
        {
            var congvan = (from p in db.CVDENs select p).Take(50).ToList();

            return View(congvan);
        }
    }
}
